<?php
require_once 'include/Database/Table.php';

class Database extends mysqli
{
   private $_table;


   function __construct($s, $un, $p, $d, $t, $tf)
   {
      parent::__construct($s, $un, $p, $d);
      $this->_table=new Table($t, $tf);
   }

   
   public function close()
   {
      parent::close();
      $this->_table->close();
      unset($this);
   }


   public function getTableName()
   {
      return $this->_table->getName();
   }


   public function getTableFields()
   {
      return $this->_table->getFields();
   }
}
?>